﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Common.Logging;
using Common.Logging.Simple;
using Quartz.Impl;

namespace Quartz.NET.WindowsFormsApp
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            LogManager.Adapter = new ConsoleOutLoggerFactoryAdapter { Level = LogLevel.Info };
            var scheduler = StdSchedulerFactory.GetDefaultScheduler();
            scheduler.Start();

            Application.Run(new FormStartup());
            scheduler.Shutdown();
        }
    }
}
